magnetometer
An instrument for measuring the strength and direction of magnetic field.